//
//  ZDNormalCell.swift
//  1026SwiftSinaWeiBo
//
//  Created by Apple on 15/11/1.
//  Copyright © 2015年 itcast. All rights reserved.
//

import UIKit

class ZDNormalCell: ZDStatusCell {

    override func prepareUI() {
        
        //一定要先调用父类的方法
        super.prepareUI()
        
        let pictureViewConstraints = pictureView.ff_AlignVertical(type: ff_AlignType.BottomLeft, referView: contentLabel, size: CGSize(width: 0, height: 0), offset: CGPoint(x: 0, y: margin))

        //保存宽约束
        pictureViewWidthC = pictureView.ff_Constraint(pictureViewConstraints, attribute: NSLayoutAttribute.Width)

        //保存高约束
        pictureViewHeightC = pictureView.ff_Constraint(pictureViewConstraints, attribute: NSLayoutAttribute.Height)
        
    }

}
